package com.cwz.taculture.service.register.impl;

import com.cwz.taculture.mapper.register.RegisterMapper;
import com.cwz.taculture.service.register.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Register_ServiceImpl implements RegisterService {

    @Autowired
    private RegisterMapper register_mapper;

    /**
     * 注册用户 根据用户名、电话号码、密码
     *
     * @param userName   用户名
     * @param userPwd    密码
     * @param userNumber 电话号码   聚光手电筒
     * @return 受影响的行数
     */
    @Override
    public int addRegister(String userName, String userPwd, String userNumber) {
        int i = register_mapper.addRegister(userName,userPwd,userNumber);
        return i;
    }
}
